import request from '../utils/request'
export function list() {
  return request({
    url: '/member/getInfo',
    method: 'get'
  })
}
// export function getInfo() {
//   return request({
//     url: '/member/getInfo',
//     method: 'get'
//   })
// }

/* 累计 */
export function summary() {
  return request({
    url: '/member/promoter/summary',
    method: 'get'
  })
}

/* 推广 */
export function promotion(params) {
  return request({
    url: '/admin/article/list',
    method: 'get',
    params: params
  })
}

export function gauge(params) {
  return request({
    url: '/admin/mchGauge/list',
    method: 'get',
    params: params
  })
}

export function course(params) {
  return request({
    url: '/admin/mchCourse/list',
    method: 'get',
    params: params
  })
}

/* 获取分销百分比 */
export function percentage(params) {
  return request({
    url: '/admin/distribution/list',
    method: 'get',
    params: params
  })
}

export function calculate(data) {
  return request({
    url: '/member/deposit/calculate?amount=' + data,
    method: 'post'
  })
}

export function transfer(params) {
  return request({
    url: '/member/deposit/transfer',
    method: 'post',
	params: params
  })
}

export function depositList(params) {
  return request({
    url:'/member/deposit/list',
    method:'get',
    params: params
  })
}
